<template>
	<van-nav-bar :title="title" left-arrow @click-left="router.go(-1)" fixed />
	<!-- 这是加上下的间距 -->
	<div class="top-frame bottom-frame">
		<router-view @change="changeTitle"></router-view>
		<!-- <div class="bottom">已经到结尾了...</div> -->
	</div>
</template>

<script setup>
	import {ref} from 'vue'
	import router from '@/router'
	// 
	const title = ref("")
	
	function changeTitle(data){
		console.log(data)
		title.value = data
	}
</script>

<style>
</style>